package com.xj.demo.loadclass;

public class ActiveUserTest {
    public static void main(String[] args) {
//        int b = User.A;
        System.out.println(Foo.num);
    }
}

class User{
    static{
        System.out.println("User类初始化");
    }
    public static final int A = 123;
    public static final String B = new String("hello");
}

interface CompareA{
    public static final Thread t = new Thread(){
        {
            System.out.println("init thread");
        }
    };
    public static final int A = 100;
    public default void method1(){
        System.out.println("CompareA.method1");
    }
}
interface CompareB extends CompareA{
    public static final Thread t = new Thread(){
        {
            System.out.println("init thread");
        }
    };
    public static final int A = 200;
    public static int num = 10;
}

class Foo implements CompareA{
    static {
        System.out.println("Foo init");
    }
    public static int num = 10;
}
